<?php
       	  if($_SESSION['per']==3 ||$_SESSION['per']==2){
					   exit();
				 }
        $xcrud = Xcrud::get_instance();  
  		$xcrud->table('category');		//-- Dropdown parent id of subcategory       
		$xcrud->relation('p_id','category','id','name'); 
        	$xcrud->fields('name,p_id', false, 'Information');		
		$xcrud->fields('alias,seo_title,seo_keyword,seo_description,thutu', false, 'Seo Option');		
		$xcrud->fields('small_picture,medium_picture,large_picture', false, 'Image');
		
		$xcrud->fields('image_type,video_type,text_type',false, 'Config'); 
		
		$xcrud->change_type('small_picture,medium_picture,large_picture', 'remote_image');			
		$xcrud->change_type('seo_keyword,seo_description', 'text');  
		
 		$xcrud->theme('bootstrap');		 	
		$xcrud->table_name('Category Manage System');
		
        //         $xcrud->unset_add();
	
				$xcrud->show_primary_ai_column(true);
                 $xcrud->unset_csv();
                $xcrud->unset_print();
                 
                 
                 echo $xcrud->render();
            
              
?>

